package top.tangyh.lamp.care.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import lombok.Getter;
import lombok.Setter;

//@Getter
//@Setter
//@ConfigurationProperties(prefix = "lamp.mqtt5")
//@RefreshScope

@Data
@RefreshScope
@Component
@ConfigurationProperties(prefix = "lamp.mqtt5")
public class MqttProperties {
    private boolean enable;
    private String hostUrl;
    private String username;
    private String password;
    private boolean cleanSession;
    private boolean reconnect;
    private int timeout;
    private int keepAlive;
    private boolean isOpen;
    private int qos;
    private String clientId;
    private String defaultTopic;
}
